package org.potiorb.demo.generated;

import org.potiorb.orb.Object;
import org.potiorb.orb.portable.ObjectImpl;

/**
 *	Generated from IDL definition of interface "Teste"
 *	@author JacORB IDL compiler 
 */

public final class TesteHelper
{
	public static String id()
	{
		return "IDL:Teste:1.0";
	}
	public static Teste narrow (final Object obj)
	{
		if( obj == null )
			return null;
		try
		{
			return (Teste)obj;
		}
		catch( ClassCastException c )
		{
			if( obj._is_a("IDL:Teste:1.0"))
			{
				_TesteStub stub;
				stub = new _TesteStub();
				stub._set_delegate(((ObjectImpl)obj)._get_delegate());
				return stub;
				
			}
		}
		throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
	}
}
